namespace TTEngine.TTMath
{
    
    public struct fAABB
    {
        public fAABB(float x1, float y1 , float x2 , float y2 )
        {
            this.x1 = x1; this.y1 = y1;
            this.x2 = x2; this.y2 = y2;
        }
   
        public float x1;
        public float y1;
        public float x2;
        public float y2;
        public readonly static fAABB One = new fAABB(0, 0, 1, 1);
        public float Width
        {
            get
            {
                return x2 - x1;
            }
        }
        public float Height
        {
            get
            {
                return y2 - y1;
            }
        }
    }

}